﻿@model Entity.Admin.Role
@section scripts{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs();
        });
    </script>
}
@section viewAction{
    @Ajax.ActionLink(SharedResource.Back, "Index", null, new CustomAjaxOptions(), new { @class = "ui-state-default button" })
}
@{Html.EnableClientValidation(true);}
@using (Ajax.BeginForm(new CustomAjaxOptions()))
{
    <div id="tabs" class="custom-tabs">
        <ul>
            <li><a href="#tabs-1">基本信息</a></li>
            <li><a href="#tabs-2">用户</a></li>
            <li><a href="#tabs-3">权限</a></li>
        </ul>
        <div id="tabs-1">
            @Html.EditorForModel()
        </div>
        <div id="tabs-2">
            @Html.Partial("RoleUsers")
        </div>
        <div id="tabs-3">
            @Html.Partial("RoleMenus")
        </div>
    </div>
   
}